<?xml version="1.0" encoding="utf-8" ?>
<Content type="xform" name="MemberCodes">
	<model>
		<instance>
			<tblCodes>
				<nCodeKey />
				<cCodeName />
				<nCodeType>1</nCodeType>
				<nCodeParentId />
				<cCodeGroups />
				<cCode />
				<nUseId />
				<dUseDate />
				<nAuditId />
				<dPublishDate />
				<dExpireDate />
				<dInsertDate />
				<nInsertDirId />
				<dUpdateDate />
				<nUpdateDirId />
				<nStatus>0</nStatus>
				<cDescription />
			</tblCodes>
		</instance>
		<submission id="Save" action="" method="post" event="form_check(this)" />
		<bind id="nCodeKey" nodeset="tblCodes/nCodeKey" required="false()" type="string" />
		<bind id="cCodeName" nodeset="tblCodes/cCodeName" required="false()" type="string" />
		<bind id="nCodeType" nodeset="tblCodes/nCodeType" required="false()" type="string" />
		<bind id="dPublishDate" nodeset="tblCodes/dPublishDate" required="false()" type="string" />
		<bind id="dExpireDate" nodeset="tblCodes/dExpireDate" required="false()" type="string" />
		<bind id="nStatus" nodeset="tblCodes/nStatus" required="false()" type="string" />
	</model>
	<group ref="Content">
			<label>Code Set Details</label>
			<input bind="nCodeKey" class="hidden">
				<label>nCodeKey</label>
				<value></value>
			</input>
			<input bind="cCodeName" class="required">
				<label>Name</label>
				<value></value>
				<hint>This is a name to help you idenitfy this group of codes.</hint>
			</input>
			<input bind="nCodeType" class="hidden">
				<label>nCodeType</label>
				<value>1</value>
			</input>
			<input bind="dPublishDate" class="calendar">
				<label>From</label>
				<value></value>
			</input>
			<input bind="dExpireDate" class="calendar">
				<label>To</label>
				<value></value>
			</input>
			<select1 bind="nStatus" class="required" appearance="full">
				<label>Status</label>
				<item>
					<label>Live</label>
					<value>1</value>
				</item>
				<item>
					<label>Hidden</label>
					<value>0</value>
				</item>
				<value>0</value>
			</select1>
			<submit submission="CodeGen" ref="submit" class="principle">
				<label>Save Codeset</label>
			</submit>
			<help>
				A code set is something that indicates a grouping of codes.<br/>  
				Codes are generated against it, and belong to it - these codes<br/>
				are also active according to whether the code set is active.
			</help>

	</group>
</Content>
